import request from '@/utils/request'

// 查询用户学历列表
export function listUsereducational(query) {
  return request({
    url: '/business/usereducational/list',
    method: 'get',
    params: query
  })
}

// 查询用户学历详细
export function getUsereducational(userEducationalId) {
  return request({
    url: '/business/usereducational/' + userEducationalId,
    method: 'get'
  })
}

// 新增用户学历
export function addUsereducational(data) {
  return request({
    url: '/business/usereducational',
    method: 'post',
    data: data
  })
}

// 修改用户学历
export function updateUsereducational(data) {
  return request({
    url: '/business/usereducational',
    method: 'put',
    data: data
  })
}

// 删除用户学历
export function delUsereducational(userEducationalId) {
  return request({
    url: '/business/usereducational/' + userEducationalId,
    method: 'delete'
  })
}
